<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			if(uni.getStorageSync('token')){
				uni.$u.http.post('/shop/userinfo', ).then(res => {
					if(res.data.shop_id){
						uni.reLaunch({
							url:'/pages/verifier/verifier?id='+res.data.shop_id
						})
					}
				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
</style>
